for i in {0001..0700}
do
	echo "$i"
	gnuplot -e "reset; set terminal jpeg;set pm3d map; set logscale cb; set cbrange [3e-3:3]; splot[][][0:3] './sol_test/g2_a1.psi.$i.dat' w pm3d " > Video/pic$i.jpeg
done
cd Video
ffmpeg -f image2 -i pic%04d.jpeg -vcodec mpeg4 -r 12 -b 800k  soliton_in_nnls_1_perturb_pm3d.avi
rm -f *.jpeg
cd ..


